﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShopStock_Manager.aspx.cs"
    Inherits="page_ShopStock_Manager" %>

<%@ Register Assembly="Infragistics2.WebUI.Misc.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.Misc" TagPrefix="igmisc" %>
<%@ Register Assembly="Infragistics2.WebUI.WebDataInput.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.WebDataInput" TagPrefix="igtxt" %>
<%@ Register Assembly="Infragistics2.WebUI.WebSchedule.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.WebSchedule" TagPrefix="ig_sched" %>
<%@ Register Assembly="Infragistics2.WebUI.UltraWebGrid.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../style/main.css" rel="stylesheet" type="text/css" />

</head>
<body>
    <form id="form1" runat="server">
    <br />
    <center>
    <table style="width: 96%; background-color: #85BDE2; vertical-align: middle;" border="0px"
        cellpadding="0px" cellspacing="1px">
        <tr style="background-color: #DAE7F8;">
            <td>
                <igmisc:WebPanel ID="WebPanel1" runat="server" Width="100%" BackColor="#DAE7F8" BorderColor="#106DB0"
                    BorderStyle="Solid" BorderWidth="1px" Expanded="False">
                    <Header Text="销售预警设置">
                        <ExpandedAppearance>
                            <Styles Font-Bold="True" Height="30px">
                            </Styles>
                        </ExpandedAppearance>
                    </Header>
                    <Template>
                        <table width="50%">
                            <tbody>
                                <tr>
                                    <td style="width: 5px">
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlType" runat="server" Width="116px">
                                            <asp:ListItem Value="GoodNo">商品编号</asp:ListItem>
                                            <asp:ListItem Value="GoodName_CN">商品名称</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtCondition" runat="server"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" Width="90px"
                                            OnClientClick="return IsNull()" />
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </Template>
                </igmisc:WebPanel>
            </td>
        </tr>
        <tr style="background-color: #DAE7F8;">
            <td style="width: 100%; text-align: center">
                <igtbl:UltraWebGrid ID="uwgMain" runat="server" Height="100%" Width="350px" Style="left: 0px;
                    top: 0px" OnUpdateRow="uwgMain_UpdateRow" OnPageIndexChanged="uwgMain_PageIndexChanged">
                    <Bands>
                        <igtbl:UltraGridBand AllowUpdate="No">
                            <SelectedRowStyle BorderStyle="Solid" BorderWidth="1px" />
                            <AddNewRow View="NotSet" Visible="NotSet">
                            </AddNewRow>
                            <Columns>
                                <igtbl:UltraGridColumn BaseColumnName="ID" HeaderText="ID" Hidden="True" Key="ID">
                                    <Header Caption="ID">
                                    </Header>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="ShopNO" HeaderText="店铺编号" Key="ShopNO" AllowUpdate="No">
                                    <Header Caption="店铺编号">
                                        <RowLayoutColumnInfo OriginX="1" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="1" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="GoodNo" FooterText="" HeaderText="商品编号" Key="GoodNo"
                                    AllowUpdate="No">
                                    <Header Caption="商品编号">
                                        <RowLayoutColumnInfo OriginX="2" />
                                    </Header>
                                    <Footer Caption="">
                                        <RowLayoutColumnInfo OriginX="2" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="GoodName_CN" HeaderText="商品名称" Key="GoodName_CN"
                                    AllowUpdate="No">
                                    <Header Caption="商品名称">
                                        <RowLayoutColumnInfo OriginX="3" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="3" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="GoodNorm" HeaderText="商品规格" Key="GoodNorm"
                                    AllowUpdate="No">
                                    <Header Caption="商品规格">
                                        <RowLayoutColumnInfo OriginX="4" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="4" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="GoodColor" HeaderText="商品颜色" Key="GoodColor"
                                    AllowUpdate="No">
                                    <Header Caption="商品颜色">
                                        <RowLayoutColumnInfo OriginX="5" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="5" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="Price_Orig" HeaderText="商品价格" Key="Price_Orig"
                                    AllowUpdate="No">
                                    <Header Caption="商品价格">
                                        <RowLayoutColumnInfo OriginX="6" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="6" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="Price_Vip" HeaderText="会员价格" Key="Price_Vip"
                                    AllowUpdate="No">
                                    <Header Caption="会员价格">
                                        <RowLayoutColumnInfo OriginX="7" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="7" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="Amount" HeaderText="库存数量" Key="Amount" AllowUpdate="No">
                                    <Header Caption="库存数量">
                                        <RowLayoutColumnInfo OriginX="8" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="8" />
                                    </Footer>
                                </igtbl:UltraGridColumn>   
                                <igtbl:UltraGridColumn AllowUpdate="Yes" BaseColumnName="UnMarketedNum" HeaderText="预警数量" Key="UnMarketedNo" >
                                    <Header Caption="预警数量">
                                        <RowLayoutColumnInfo OriginX="9" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="9" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn AllowUpdate="Yes" BaseColumnName="UnMarketedDate" HeaderText="预警时间" Key="UnMarketedDate">
                                    <Header Caption="预警时间">
                                        <RowLayoutColumnInfo OriginX="10" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="10" />
                                    </Footer>
                                </igtbl:UltraGridColumn>                            
                            </Columns>
                        </igtbl:UltraGridBand>
                    </Bands>
                    <DisplayLayout Version="4.00" SelectTypeRowDefault="Extended" Name="uwgMain" AllowSortingDefault="OnClient"
                        AllowDeleteDefault="Yes" AllowColSizingDefault="Free" RowHeightDefault="20px"
                        TableLayout="Fixed" ViewType="Hierarchical" AllowColumnMovingDefault="OnServer"
                        HeaderClickActionDefault="SortMulti" StationaryMargins="Header" BorderCollapseDefault="Separate"
                        StationaryMarginsOutlookGroupBy="True" AutoGenerateColumns="False" IndentationTypeDefault="Flat"
                        NoDataMessage="没有查询到数据！" UseFixedHeaders="True" CellClickActionDefault="RowSelect">
                        <GroupByBox Hidden="True" Prompt="">
                            <Style BackColor="ActiveBorder" BorderColor="Window">
                                </Style>
                        </GroupByBox>
                        <GroupByRowStyleDefault BackColor="Control" BorderColor="Window">
                        </GroupByRowStyleDefault>
                        <ActivationObject BorderColor="" BorderWidth="">
                        </ActivationObject>
                        <FooterStyleDefault BackColor="LightGray" BorderWidth="1px" BorderStyle="Solid">
                            <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px">
                            </BorderDetails>
                        </FooterStyleDefault>
                        <RowStyleDefault BorderColor="Silver" BorderWidth="1px" BorderStyle="Solid" Font-Names="Microsoft Sans Serif"
                            Font-Size="8.25pt">
                            <Padding Left="3px"></Padding>
                            <BorderDetails ColorLeft="Window" ColorTop="Window"></BorderDetails>
                        </RowStyleDefault>
                        <FilterOptionsDefault>
                            <FilterDropDownStyle CustomRules="overflow:auto;" BackColor="White" BorderColor="Silver"
                                BorderWidth="1px" BorderStyle="Solid" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                Font-Size="11px" Height="350px" Width="200px">
                                <Padding Left="2px"></Padding>
                            </FilterDropDownStyle>
                            <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
                            </FilterHighlightRowStyle>
                            <FilterOperandDropDownStyle CustomRules="overflow:auto;" BackColor="White" BorderColor="Silver"
                                BorderWidth="1px" BorderStyle="Solid" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                Font-Size="11px">
                                <Padding Left="2px"></Padding>
                            </FilterOperandDropDownStyle>
                        </FilterOptionsDefault>
                        <RowSelectorStyleDefault Width="10px">
                        </RowSelectorStyleDefault>
                        <SelectedRowStyleDefault BackColor="#99FF99" BorderStyle="Solid" BorderWidth="1px"
                            Cursor="Hand">
                        </SelectedRowStyleDefault>
                        <HeaderStyleDefault HorizontalAlign="Center" Height="26px" VerticalAlign="Middle">
                            <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px">
                            </BorderDetails>
                        </HeaderStyleDefault>
                        <EditCellStyleDefault BorderWidth="0px" BorderStyle="None">
                        </EditCellStyleDefault>
                        <FrameStyle BackColor="Window" BorderColor="White" BorderWidth="1px" Font-Names="Microsoft Sans Serif"
                            Font-Size="8.25pt" Height="350px" Width="100%">
                        </FrameStyle>
                        <Pager MinimumPagesForDisplay="2" AllowPaging="True" NextText="下页" PageSize="10"
                            PrevText="上页" StyleMode="ComboBox" Pattern="&lt;table width=100%&gt;&lt;tr&gt;&lt;td align=left&gt;页码：[currentpageindex]/[pagecount] 每页:[pagesize]条&lt;/td&gt;&lt;td align=right&gt;[default]&lt;td&gt;&lt;/tr&gt;&lt;/table&gt;">
                            <Style BackColor="#FFFF99">
                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" > </BorderDetails ></Style>
                        </Pager>
                        <AddNewBox>
                            <Style BackColor="Window" BorderColor="InactiveCaption" BorderWidth="1px" BorderStyle="Solid">
                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" > </BorderDetails ></Style>
                        </AddNewBox>
                    </DisplayLayout>
                </igtbl:UltraWebGrid>
                &nbsp;
                <asp:Button ID="btnExcel" runat="server"  Text="导出Excel"
                    Width="83px" Height="22px" onclick="btnExcel_Click" />
            </td>
        </tr>
    </table>
    
    </center>
    <asp:TextBox ID="tSiteID" runat="server" Visible="false"></asp:TextBox>
    
    </form>
</body>
</html>
